package com.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.entity.Users;
import com.project.service.UsersService;
import com.project.mapper.UsersMapper;
import org.springframework.stereotype.Service;

/**
 * @author lenovo
 * @description 针对表【t_user】的数据库操作Service实现
 * @createDate 2023-01-15 15:28:28
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

    @Override
    public Users getByUsername(String username) {
        return getOne(new QueryWrapper<Users>().eq("username", username));
    }
}




